luci-base: ui.js: further keyboard navigation improvements for dropdowns
authorJo-Philipp Wich <[email protected]>
Wed, 21 Feb 2024 14:30:16 +0000 (15:30 +0100)
committerPaul Donald <[email protected]>
Thu, 7 Mar 2024 00:38:52 +0000 (01:38 +0100)
commitc52a8eeffcfa69599e88e6305c127cd28ebaf4b1
tree0cdd9f927fde9de9c45a1af630713ebb7727d957
parent0337416f714d80d0b102bfe251c423f315dfff2f
luci-base: ui.js: further keyboard navigation improvements for dropdowns

 - Ensure that pressing escape within the custom choice input closes the
   dropdown list but not the parent modal dialog

 - Ensure that added custom choice elements are tabbable

 - Retain focus on dropdown when closing dropdown

 - Consistently focus input textarea when tabbing into custom choice item

Signed-off-by: Jo-Philipp Wich <[email protected]>
(cherry picked from commit 317ed4a0432b3f57c0cf76e633c180b171b7aae1)
modules/luci-base/htdocs/luci-static/resources/ui.js